
#include <stdio.h>
#include<iostream>
#include "FindNode.cpp"
using namespace std;
int main(int argc, char const *argv[])
{
    FindNode findNode = FindNode(1);
    for (int i = 0; i < 1000; i++)
    {
        findNode.insertNode(i);
        /* code */
    }
    int input;
    cout<<"Please input An index:";
    cin>>input;
    Node* n=findNode.FindNodeByReverseK(input);
    cout<<"The val is : "<<n->val<<endl;    
    return 0;
}
